<template>
    <div>
        <img style="width: 100%; height: 350px;" :src="detailInfo.img" alt="">
        <van-action-bar>
            <van-action-bar-icon icon="chat-o" text="客服" />
            <van-action-bar-icon icon="cart-o" text="购物车" />
            <van-action-bar-icon icon="shop-o" text="店铺" />
            <van-action-bar-button type="warning" text="加入购物车" />
            <van-action-bar-button type="danger" text="立即购买" />
        </van-action-bar>
        <h3>{{ detailInfo.id }}</h3>
    </div>
</template>

<script setup>
import { ref } from "vue";
import { useRoute } from 'vue-router'
const route = useRoute();
const detailInfo = ref({});
detailInfo.value = route.query;
console.log(route);


</script>

<style lang="scss" scoped></style>